Fix copy-file on MS-Windows with file names outside of current locale.
authorEli Zaretskii <eliz@gnu.org>
Sat, 14 Dec 2013 08:29:42 +0000 (10:29 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 14 Dec 2013 08:29:42 +0000 (10:29 +0200)
commit56b948b2ed0fe6f5e4c725494f73a3f501653157
tree80ebc02289e18d1a4b6c26f84fec19728d1424ac
parent2f711a188f18cd276bbe7b068bcf54922d59e022
Fix copy-file on MS-Windows with file names outside of current locale.

 src/fileio.c (Fcopy_file) [WINDOWSNT]: Move most of the
 Windows-specific code to w32.c.  Change error message text to
 match that of Posix platforms.
 src/w32.c (w32_copy_file): New function, most of the code copied and
 reworked from Fcopy_file.  Improve error handling.  Plug memory
 leak when errors are thrown.  Support file names outside of the
 current codepage.  (Bug#7100)
src/ChangeLog
src/fileio.c
src/w32.c
src/w32.h